// Octopod
// Copyright (c) 2005-2010
//
// GPL
//
// This file contains functions that provide access to the Octopod shared
// object store.  These functions manage the singletons for peers, shares, etc.
#ifndef OCTOPOD_STORE_H__
#define OCTOPOD_STORE_H__

#include <vector>

#include <QtGlobal>

#include "share.h"

namespace octopod {


class store {
  public:
    // Returns a vector containing all shares that we are a member of.
    static const std::vector< QSharedPointer<Share> > &getAllShares();

    // Returns the peer that corresponds to the given public key hash.
    static QSharedPointer<Peer> getPeerByHash(const std::string &keyhash);


  private:


};

}  // namespace octopod

#endif  // OCTOPOD_STORE_H__
